<div class="topbar">
	<div class="topbar-inner">
		<div class="container">
			<a class="brand" href="/">{ GameDevAssociation }</a>
			<ul class="nav">
				<?php if (isset($current) && $current == "accueil") { ?>
					<li class="active"><a href="/index">Accueil</a></li>
				<?php } else { ?>
					<li><a href="/index">Accueil</a></li>
				<?php } ?>
				<?php if (isset($current) && $current == "membres") { ?>
					<li class="active"><a href="/membres">Membres</a></li>
				<?php } else { ?>
					<li><a href="/membres">Membres</a></li>
				<?php } ?>
				<?php if (isset($current) && $current == "tp") { ?>
					<li class="active"><a href="/tp">TP</a></li>
				<?php } else { ?>
					<li><a href="/tp">TP</a></li>
				<?php } ?>
				<?php if (isset($current) && $current == "photos") { ?>
					<li class="active"><a href="/photos">Photos</a></li>
				<?php } else { ?>
					<li><a href="/photos">Photos</a></li>
				<?php } ?>
				<?php if (isset($current) && $current == "contact") { ?>
					<li class="active"><a href="/contact">Contact</a></li>
				<?php } else { ?>
					<li><a href="/contact">Contact</a></li>
				<?php } ?>
					<li class="dropdown" data-dropdown="dropdown" >
						<?php if (isset($_SESSION['login'])) { ?>
				    		<a href="#" class="dropdown-toggle">Profil (<?php echo $_SESSION['login']; ?>)</a>
						<?php } else { ?>
				    		<a href="#" class="dropdown-toggle">Profil</a>
						<?php } ?>
				    <ul  class="dropdown-menu">
				    <?php if (!isset($_SESSION['login'])) { ?>
				      <li><a href="/session/connexion">Connexion</a></li>
				      <li><a href="/session/inscription">Inscription</a></li>
				     <?php }else{ ?>
				      <li><a href="/session/informations">Informations</a></li>
				      <li><a href="/session/messages">Messages</a></li>
				      <li class="divider"></li>
				      <li><a href="/session/deconnexion">Deconnexion</a></li>
				      <?php } ?>
				    </ul>
				  </li>
			</ul>
		</div>
    </div>
</div>
<script type="text/javascript">
	$().dropdown();
</script>
